<template>
	<view>
		<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
			<swiper-item v-for="(item,index) in indexSwiperData" :key="index">
				<view class="swiper-item">
					<image class="imgItem" :src="item.imgUrl" mode=""></image>
				</view>
			</swiper-item>
			<!-- 	<swiper-item>
				<view class="swiper-item">
					<image class="imgItem" src="@/static/img/swiper2.jpg" mode=""></image>
				</view>
			</swiper-item>
			<swiper-item>
				<view class="swiper-item">
					<image class="imgItem" src="@/static/img/swiper3.jpg" mode=""></image>
				</view>
			</swiper-item> -->
		</swiper>
	</view>
</template>

<script>
	export default {
		name: "index-swiper",
		data() {
			return {

			};

		},
		props: {
			indexSwiperData: {
				type: Array,
				default: () => []
			}
		}
	}
</script>

<style scoped>
	swiper {
		width: 100%;
		height: 400rpx;
	}

	.imgItem {
		width: 100%;
		height: 400rpx;
	}
</style>